package org.gd.hellojaxb.privat24.commons;

import org.gd.hellojaxb.adapters.DoubleAdaptersFactory;

import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

@XmlRootElement(name = "BaseAccount")
@XmlAccessorType(XmlAccessType.FIELD)
public class CommonsBaseAccount {

    @XmlAttribute(name = "Currency")
    private String currency;
    @XmlAttribute(name = "MinPay")
    @XmlJavaTypeAdapter(DoubleAdaptersFactory.Amount.class)
    private Double minPay;
    @XmlAttribute(name = "CreditLimit")
    @XmlJavaTypeAdapter(DoubleAdaptersFactory.Amount.class)
    private Double creditLimit;
    @XmlAttribute(name = "Remain")
    @XmlJavaTypeAdapter(DoubleAdaptersFactory.Amount.class)
    private Double remain;
    @XmlAttribute(name = "Avail")
    @XmlJavaTypeAdapter(DoubleAdaptersFactory.Amount.class)
    private Double avail;
    @XmlAttribute(name = "AccNumber")
    private String account;

    public CommonsBaseAccount() {
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public Double getMinPay() {
        return minPay;
    }

    public void setMinPay(Double minPay) {
        this.minPay = minPay;
    }

    public Double getCreditLimit() {
        return creditLimit;
    }

    public void setCreditLimit(Double creditLimit) {
        this.creditLimit = creditLimit;
    }

    public Double getRemain() {
        return remain;
    }

    public void setRemain(Double remain) {
        this.remain = remain;
    }

    public Double getAvail() {
        return avail;
    }

    public void setAvail(Double avail) {
        this.avail = avail;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }
}
